package quq.missq.adapter;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import quq.missq.fragments.BigShootFragment;

/**
 * Created by River on 7/24/15.
 */
public class BigShootFragmentAdapter extends FragmentPagerAdapter{

    public BigShootFragmentAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        BigShootFragment fragment = new BigShootFragment();
        Bundle bundle = new Bundle();
        int type = -1;
        if(position == 0){
            type = 0;
        }else if(position == 1){
            type = 3;
        }else if(position == 2){
            type = 2;
        }else{
            type = 1;
        }
        bundle.putInt("type",type);
        fragment.setArguments(bundle);
        return fragment;

    }

    @Override
    public int getCount() {
        return 4;
    }
}
